import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/index.vue'
import Post from './views/post.vue'
import Page from './views/page.vue'
import List from './views/list.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/post/:id',
      name: 'Post',
      component: Post
    },
    {
      path: '/list/:id',
      name: 'List',
      component: List
    },
    {
      path: '/page/:id',
      name: 'Page',
      component: Page
    }
  ]
})
